#include <iostream>
using namespace std;
#include<string>
int main()
{
    //整型
    int a = 0;
    cout<<"请给整型变量a赋值："<<endl;
    cin >> a;
    cout<<"整型变量a="<< a << endl;


    //浮点型
    float d =3.14f;
    cout<<"请给浮点型d赋值"<<endl;
    cin>>d;
    cout<<"浮点型变量d="<<d<<endl;

    //字符型
    char ch ='b';
    cout<<"请给字符型b赋值"<<endl;
    cin>>ch;
    cout<<"字符型变量ch="<<ch<<endl;

    //字符串型
    string c = "高壮壮";
    cout<<"请给字符串型c赋值"<<endl;
    cin>>c;
    cout<<"字符串型变量c="<<c<<endl;


    //布尔类型
    bool  e = false;
    cout<<"请给布尔类型e赋值"<<endl;
    cin>>e;
    cout<<"布尔类型变量e="<<e<<endl;
//bool类型，只要是非0的值都代表为真
    system("pause");

    return 0;
}